home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / AEDataModel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  18.1 KB  |  499 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AEDataModel.h
  3.  
  4.      Contains:    AppleEvent Data Model Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1996-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __AEDATAMODEL__
  18. #define __AEDATAMODEL__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __MIXEDMODE__
  24. #include <MixedMode.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40.  
  41. #if PRAGMA_STRUCT_ALIGN
  42.     #pragma options align=mac68k
  43. #elif PRAGMA_STRUCT_PACKPUSH
  44.     #pragma pack(push, 2)
  45. #elif PRAGMA_STRUCT_PACK
  46.     #pragma pack(2)
  47. #endif
  48.  
  49. /* Apple event descriptor types */
  50.  
  51. enum {
  52.     typeBoolean                    = FOUR_CHAR_CODE('bool'),
  53.     typeChar                    = FOUR_CHAR_CODE('TEXT')
  54. };
  55.  
  56. /* Preferred numeric Apple event descriptor types */
  57.  
  58. enum {
  59.     typeSInt16                    = FOUR_CHAR_CODE('shor'),
  60.     typeSInt32                    = FOUR_CHAR_CODE('long'),
  61.     typeUInt32                    = FOUR_CHAR_CODE('magn'),
  62.     typeSInt64                    = FOUR_CHAR_CODE('comp'),
  63.     typeIEEE32BitFloatingPoint    = FOUR_CHAR_CODE('sing'),
  64.     typeIEEE64BitFloatingPoint    = FOUR_CHAR_CODE('doub'),
  65.     type128BitFloatingPoint        = FOUR_CHAR_CODE('ldbl'),
  66.     typeDecimalStruct            = FOUR_CHAR_CODE('decm')
  67. };
  68.  
  69. /* Non-preferred Apple event descriptor types */
  70.  
  71. enum {
  72.     typeSMInt                    = typeSInt16,
  73.     typeShortInteger            = typeSInt16,
  74.     typeInteger                    = typeSInt32,
  75.     typeLongInteger                = typeSInt32,
  76.     typeMagnitude                = typeUInt32,
  77.     typeComp                    = typeSInt64,
  78.     typeSMFloat                    = typeIEEE32BitFloatingPoint,
  79.     typeShortFloat                = typeIEEE32BitFloatingPoint,
  80.     typeFloat                    = typeIEEE64BitFloatingPoint,
  81.     typeLongFloat                = typeIEEE64BitFloatingPoint,
  82.     typeExtended                = FOUR_CHAR_CODE('exte')
  83. };
  84.  
  85. /* More Apple event descriptor types */
  86.  
  87. enum {
  88.     typeAEList                    = FOUR_CHAR_CODE('list'),
  89.     typeAERecord                = FOUR_CHAR_CODE('reco'),
  90.     typeAppleEvent                = FOUR_CHAR_CODE('aevt'),
  91.     typeEventRecord                = FOUR_CHAR_CODE('evrc'),
  92.     typeTrue                    = FOUR_CHAR_CODE('true'),
  93.     typeFalse                    = FOUR_CHAR_CODE('fals'),
  94.     typeAlias                    = FOUR_CHAR_CODE('alis'),
  95.     typeEnumerated                = FOUR_CHAR_CODE('enum'),
  96.     typeType                    = FOUR_CHAR_CODE('type'),
  97.     typeAppParameters            = FOUR_CHAR_CODE('appa'),
  98.     typeProperty                = FOUR_CHAR_CODE('prop'),
  99.     typeFSS                        = FOUR_CHAR_CODE('fss '),
  100.     typeKeyword                    = FOUR_CHAR_CODE('keyw'),
  101.     typeSectionH                = FOUR_CHAR_CODE('sect'),
  102.     typeWildCard                = FOUR_CHAR_CODE('****'),
  103.     typeApplSignature            = FOUR_CHAR_CODE('sign'),
  104.     typeQDRectangle                = FOUR_CHAR_CODE('qdrt'),
  105.     typeFixed                    = FOUR_CHAR_CODE('fixd'),
  106.     typeSessionID                = FOUR_CHAR_CODE('ssid'),
  107.     typeTargetID                = FOUR_CHAR_CODE('targ'),
  108.     typeProcessSerialNumber        = FOUR_CHAR_CODE('psn '),
  109.     typeKernelProcessID            = FOUR_CHAR_CODE('kpid'),
  110.     typeDispatcherID            = FOUR_CHAR_CODE('dspt'),
  111.     typeNull                    = FOUR_CHAR_CODE('null')        /* null or nonexistent data */
  112. };
  113.  
  114. /* Keywords for Apple event attributes */
  115.  
  116. enum {
  117.     keyTransactionIDAttr        = FOUR_CHAR_CODE('tran'),
  118.     keyReturnIDAttr                = FOUR_CHAR_CODE('rtid'),
  119.     keyEventClassAttr            = FOUR_CHAR_CODE('evcl'),
  120.     keyEventIDAttr                = FOUR_CHAR_CODE('evid'),
  121.     keyAddressAttr                = FOUR_CHAR_CODE('addr'),
  122.     keyOptionalKeywordAttr        = FOUR_CHAR_CODE('optk'),
  123.     keyTimeoutAttr                = FOUR_CHAR_CODE('timo'),
  124.     keyInteractLevelAttr        = FOUR_CHAR_CODE('inte'),        /* this attribute is read only - will be set in AESend */
  125.     keyEventSourceAttr            = FOUR_CHAR_CODE('esrc'),        /* this attribute is read only */
  126.     keyMissedKeywordAttr        = FOUR_CHAR_CODE('miss'),        /* this attribute is read only */
  127.     keyOriginalAddressAttr        = FOUR_CHAR_CODE('from')        /* new in 1.0.1 */
  128. };
  129.  
  130.  
  131. /*    Constants used for specifying the factoring of AEDescLists. */
  132.  
  133. enum {
  134.     kAEDescListFactorNone        = 0,
  135.     kAEDescListFactorType        = 4,
  136.     kAEDescListFactorTypeAndSize = 8
  137. };
  138.  
  139. /* Constants used creating an AppleEvent */
  140.  
  141. enum {
  142.                                                                 /* Constant for the returnID param of AECreateAppleEvent */
  143.     kAutoGenerateReturnID        = -1,                            /* AECreateAppleEvent will generate a session-unique ID */
  144.                                                                 /* Constant for transaction ID’s */
  145.     kAnyTransactionID            = 0                                /* no transaction is in use */
  146. };
  147.  
  148. /* Apple event manager data types */
  149. typedef ResType                         DescType;
  150. typedef FourCharCode                     AEKeyword;
  151.  
  152. struct AEDesc {
  153.     DescType                         descriptorType;
  154.     Handle                             dataHandle;
  155. };
  156. typedef struct AEDesc                    AEDesc;
  157. typedef AEDesc *                        AEDescPtr;
  158.  
  159. struct AEKeyDesc {
  160.     AEKeyword                         descKey;
  161.     AEDesc                             descContent;
  162. };
  163. typedef struct AEKeyDesc                AEKeyDesc;
  164. /* a list of AEDesc's is a special kind of AEDesc */
  165.  
  166. typedef AEDesc                             AEDescList;
  167. /* AERecord is a list of keyworded AEDesc's */
  168. typedef AEDescList                         AERecord;
  169. /* an AEDesc which contains address data */
  170. typedef AEDesc                             AEAddressDesc;
  171. /* an AERecord that contains an AppleEvent, and related data types */
  172. typedef AERecord                         AppleEvent;
  173. typedef AppleEvent *                    AppleEventPtr;
  174. typedef SInt16                             AEReturnID;
  175. typedef SInt32                             AETransactionID;
  176. typedef FourCharCode                     AEEventClass;
  177. typedef FourCharCode                     AEEventID;
  178. typedef SInt8                             AEArrayType;
  179.  
  180. enum {
  181.     kAEDataArray                = 0,
  182.     kAEPackedArray                = 1,
  183.     kAEDescArray                = 3,
  184.     kAEKeyDescArray                = 4
  185. };
  186.  
  187.  
  188.  
  189. enum {
  190.     kAEHandleArray                = 2
  191. };
  192.  
  193.  
  194. union AEArrayData {
  195.     short                             kAEDataArray[1];
  196.     char                             kAEPackedArray[1];
  197.     Handle                             kAEHandleArray[1];
  198.     AEDesc                             kAEDescArray[1];
  199.     AEKeyDesc                         kAEKeyDescArray[1];
  200. };
  201. typedef union AEArrayData                AEArrayData;
  202. typedef AEArrayData *                    AEArrayDataPointer;
  203.  
  204. /**************************************************************************
  205.   These calls are used to set up and modify the coercion dispatch table.
  206. **************************************************************************/
  207. typedef CALLBACK_API( OSErr , AECoerceDescProcPtr )(const AEDesc *fromDesc, DescType toType, long handlerRefcon, AEDesc *toDesc);
  208. typedef CALLBACK_API( OSErr , AECoercePtrProcPtr )(DescType typeCode, const void *dataPtr, Size dataSize, DescType toType, long handlerRefcon, AEDesc *result);
  209. typedef STACK_UPP_TYPE(AECoerceDescProcPtr)                     AECoerceDescUPP;
  210. typedef STACK_UPP_TYPE(AECoercePtrProcPtr)                         AECoercePtrUPP;
  211. enum { uppAECoerceDescProcInfo = 0x00003FE0 };                     /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  212. enum { uppAECoercePtrProcInfo = 0x0003FFE0 };                     /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  213. #define NewAECoerceDescProc(userRoutine)                         (AECoerceDescUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppAECoerceDescProcInfo, GetCurrentArchitecture())
  214. #define NewAECoercePtrProc(userRoutine)                         (AECoercePtrUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppAECoercePtrProcInfo, GetCurrentArchitecture())
  215. #define CallAECoerceDescProc(userRoutine, fromDesc, toType, handlerRefcon, toDesc)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppAECoerceDescProcInfo, (fromDesc), (toType), (handlerRefcon), (toDesc))
  216. #define CallAECoercePtrProc(userRoutine, typeCode, dataPtr, dataSize, toType, handlerRefcon, result)  CALL_SIX_PARAMETER_UPP((userRoutine), uppAECoercePtrProcInfo, (typeCode), (dataPtr), (dataSize), (toType), (handlerRefcon), (result))
  217.  
  218. typedef UniversalProcPtr                 AECoercionHandlerUPP;
  219. EXTERN_API( OSErr )
  220. AEInstallCoercionHandler        (DescType                 fromType,
  221.                                  DescType                 toType,
  222.                                  AECoercionHandlerUPP     handler,
  223.                                  long                     handlerRefcon,
  224.                                  Boolean                 fromTypeIsDesc,
  225.                                  Boolean                 isSysHandler)                        THREEWORDINLINE(0x303C, 0x0A22, 0xA816);
  226.  
  227. EXTERN_API( OSErr )
  228. AERemoveCoercionHandler            (DescType                 fromType,
  229.                                  DescType                 toType,
  230.                                  AECoercionHandlerUPP     handler,
  231.                                  Boolean                 isSysHandler)                        THREEWORDINLINE(0x303C, 0x0723, 0xA816);
  232.  
  233. EXTERN_API( OSErr )
  234. AEGetCoercionHandler            (DescType                 fromType,
  235.                                  DescType                 toType,
  236.                                  AECoercionHandlerUPP *    handler,
  237.                                  long *                    handlerRefcon,
  238.                                  Boolean *                fromTypeIsDesc,
  239.                                  Boolean                 isSysHandler)                        THREEWORDINLINE(0x303C, 0x0B24, 0xA816);
  240.  
  241. /**************************************************************************
  242.   The following calls provide for a coercion interface.
  243. **************************************************************************/
  244. EXTERN_API( OSErr )
  245. AECoercePtr                        (DescType                 typeCode,
  246.                                  const void *            dataPtr,
  247.                                  Size                     dataSize,
  248.                                  DescType                 toType,
  249.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0A02, 0xA816);
  250.  
  251. EXTERN_API( OSErr )
  252. AECoerceDesc                    (const AEDesc *            theAEDesc,
  253.                                  DescType                 toType,
  254.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0603, 0xA816);
  255.  
  256.  
  257. /**************************************************************************
  258.  The following calls apply to any AEDesc. Every 'result' descriptor is
  259.  created for you, so you will be responsible for memory management
  260.  (including disposing) of the descriptors so created.  
  261. **************************************************************************/
  262. EXTERN_API( OSErr )
  263. AECreateDesc                    (DescType                 typeCode,
  264.                                  const void *            dataPtr,
  265.                                  Size                     dataSize,
  266.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0825, 0xA816);
  267.  
  268. EXTERN_API( OSErr )
  269. AEDisposeDesc                    (AEDesc *                theAEDesc)                            THREEWORDINLINE(0x303C, 0x0204, 0xA816);
  270.  
  271. EXTERN_API( OSErr )
  272. AEDuplicateDesc                    (const AEDesc *            theAEDesc,
  273.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0405, 0xA816);
  274.  
  275.  
  276. /**************************************************************************
  277.   The following calls apply to AEDescList. Since AEDescList is a subtype of
  278.   AEDesc, the calls in the previous section can also be used for AEDescList.
  279.   All list and array indices are 1-based. If the data was greater than
  280.   maximumSize in the routines below, then actualSize will be greater than
  281.   maximumSize, but only maximumSize bytes will actually be retrieved.
  282. **************************************************************************/
  283. EXTERN_API( OSErr )
  284. AECreateList                    (const void *            factoringPtr,
  285.                                  Size                     factoredSize,
  286.                                  Boolean                 isRecord,
  287.                                  AEDescList *            resultList)                            THREEWORDINLINE(0x303C, 0x0706, 0xA816);
  288.  
  289. EXTERN_API( OSErr )
  290. AECountItems                    (const AEDescList *        theAEDescList,
  291.                                  long *                    theCount)                            THREEWORDINLINE(0x303C, 0x0407, 0xA816);
  292.  
  293. EXTERN_API( OSErr )
  294. AEPutPtr                        (AEDescList *            theAEDescList,
  295.                                  long                     index,
  296.                                  DescType                 typeCode,
  297.                                  const void *            dataPtr,
  298.                                  Size                     dataSize)                            THREEWORDINLINE(0x303C, 0x0A08, 0xA816);
  299.  
  300. EXTERN_API( OSErr )
  301. AEPutDesc                        (AEDescList *            theAEDescList,
  302.                                  long                     index,
  303.                                  const AEDesc *            theAEDesc)                            THREEWORDINLINE(0x303C, 0x0609, 0xA816);
  304.  
  305. EXTERN_API( OSErr )
  306. AEGetNthPtr                        (const AEDescList *        theAEDescList,
  307.                                  long                     index,
  308.                                  DescType                 desiredType,
  309.                                  AEKeyword *            theAEKeyword,
  310.                                  DescType *                typeCode,
  311.                                  void *                    dataPtr,
  312.                                  Size                     maximumSize,
  313.                                  Size *                    actualSize)                            THREEWORDINLINE(0x303C, 0x100A, 0xA816);
  314.  
  315. EXTERN_API( OSErr )
  316. AEGetNthDesc                    (const AEDescList *        theAEDescList,
  317.                                  long                     index,
  318.                                  DescType                 desiredType,
  319.                                  AEKeyword *            theAEKeyword,
  320.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0A0B, 0xA816);
  321.  
  322. EXTERN_API( OSErr )
  323. AESizeOfNthItem                    (const AEDescList *        theAEDescList,
  324.                                  long                     index,
  325.                                  DescType *                typeCode,
  326.                                  Size *                    dataSize)                            THREEWORDINLINE(0x303C, 0x082A, 0xA816);
  327.  
  328. EXTERN_API( OSErr )
  329. AEGetArray                        (const AEDescList *        theAEDescList,
  330.                                  AEArrayType             arrayType,
  331.                                  AEArrayDataPointer     arrayPtr,
  332.                                  Size                     maximumSize,
  333.                                  DescType *                itemType,
  334.                                  Size *                    itemSize,
  335.                                  long *                    itemCount)                            THREEWORDINLINE(0x303C, 0x0D0C, 0xA816);
  336.  
  337. EXTERN_API( OSErr )
  338. AEPutArray                        (AEDescList *            theAEDescList,
  339.                                  AEArrayType             arrayType,
  340.                                  const AEArrayData *    arrayPtr,
  341.                                  DescType                 itemType,
  342.                                  Size                     itemSize,
  343.                                  long                     itemCount)                            THREEWORDINLINE(0x303C, 0x0B0D, 0xA816);
  344.  
  345. EXTERN_API( OSErr )
  346. AEDeleteItem                    (AEDescList *            theAEDescList,
  347.                                  long                     index)                                THREEWORDINLINE(0x303C, 0x040E, 0xA816);
  348.  
  349.  
  350. /**************************************************************************
  351.  The following calls apply to AERecord. Since AERecord is a subtype of
  352.  AEDescList, the calls in the previous sections can also be used for
  353.  AERecord an AERecord can be created by using AECreateList with isRecord
  354.  set to true. 
  355. **************************************************************************/
  356. /*
  357.   Note: The following #defines map “key” calls on AERecords into “param” calls on 
  358.   AppleEvents.  Although no errors are currently returned if AERecords are 
  359.   passed to “param” calls and AppleEvents to “key” calls, the behavior of 
  360.   this type of API-mixing is not explicitly documented in Inside Macintosh.  
  361.   It just happens that the “key” calls have the same functionality as their 
  362.   “param” counterparts.  Since none of the “key” calls are currently available 
  363.   in the PowerPC IntefaceLib, the #defines exploit the fact that “key” and 
  364.   “param” routines can be used interchangeably, and makes sure that every 
  365.   invokation of a “key” API becomes an invokation of a “param” API.
  366. */
  367. #define AEPutKeyPtr(theAERecord, theAEKeyword, typeCode, dataPtr, dataSize) \
  368.     AEPutParamPtr((theAERecord), (theAEKeyword), (typeCode), (dataPtr), (dataSize))
  369. #define AEPutKeyDesc(theAERecord, theAEKeyword, theAEDesc) \
  370.     AEPutParamDesc((theAERecord), (theAEKeyword), (theAEDesc))
  371. #define AEGetKeyPtr(theAERecord, theAEKeyword, desiredType, typeCode, dataPtr, maxSize, actualSize) \
  372.     AEGetParamPtr((theAERecord), (theAEKeyword), (desiredType), (typeCode), (dataPtr), (maxSize), (actualSize))
  373. #define AEGetKeyDesc(theAERecord, theAEKeyword, desiredType, result) \
  374.     AEGetParamDesc((theAERecord), (theAEKeyword), (desiredType), (result))
  375. #define AESizeOfKeyDesc(theAERecord, theAEKeyword, typeCode, dataSize) \
  376.     AESizeOfParam((theAERecord), (theAEKeyword), (typeCode), (dataSize))
  377. #define AEDeleteKeyDesc(theAERecord, theAEKeyword) \
  378.     AEDeleteParam((theAERecord), (theAEKeyword))
  379. /**************************************************************************
  380.   The following calls create and manipulate the AppleEvent data type.
  381. **************************************************************************/
  382. EXTERN_API( OSErr )
  383. AECreateAppleEvent                (AEEventClass             theAEEventClass,
  384.                                  AEEventID                 theAEEventID,
  385.                                  const AEAddressDesc *    target,
  386.                                  AEReturnID             returnID,
  387.                                  AETransactionID         transactionID,
  388.                                  AppleEvent *            result)                                THREEWORDINLINE(0x303C, 0x0B14, 0xA816);
  389.  
  390.  
  391. /**************************************************************************
  392.   The following calls are used to pack and unpack parameters from records
  393.   of type AppleEvent. Since AppleEvent is a subtype of AERecord, the calls
  394.   in the previous sections can also be used for variables of type
  395.   AppleEvent. The next six calls are in fact identical to the six calls
  396.   for AERecord.
  397. **************************************************************************/
  398. EXTERN_API( OSErr )
  399. AEPutParamPtr                    (AppleEvent *            theAppleEvent,
  400.                                  AEKeyword                 theAEKeyword,
  401.                                  DescType                 typeCode,
  402.                                  const void *            dataPtr,
  403.                                  Size                     dataSize)                            THREEWORDINLINE(0x303C, 0x0A0F, 0xA816);
  404.  
  405. EXTERN_API( OSErr )
  406. AEPutParamDesc                    (AppleEvent *            theAppleEvent,
  407.                                  AEKeyword                 theAEKeyword,
  408.                                  const AEDesc *            theAEDesc)                            THREEWORDINLINE(0x303C, 0x0610, 0xA816);
  409.  
  410. EXTERN_API( OSErr )
  411. AEGetParamPtr                    (const AppleEvent *        theAppleEvent,
  412.                                  AEKeyword                 theAEKeyword,
  413.                                  DescType                 desiredType,
  414.                                  DescType *                typeCode,
  415.                                  void *                    dataPtr,
  416.                                  Size                     maximumSize,
  417.                                  Size *                    actualSize)                            THREEWORDINLINE(0x303C, 0x0E11, 0xA816);
  418.  
  419. EXTERN_API( OSErr )
  420. AEGetParamDesc                    (const AppleEvent *        theAppleEvent,
  421.                                  AEKeyword                 theAEKeyword,
  422.                                  DescType                 desiredType,
  423.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0812, 0xA816);
  424.  
  425. EXTERN_API( OSErr )
  426. AESizeOfParam                    (const AppleEvent *        theAppleEvent,
  427.                                  AEKeyword                 theAEKeyword,
  428.                                  DescType *                typeCode,
  429.                                  Size *                    dataSize)                            THREEWORDINLINE(0x303C, 0x0829, 0xA816);
  430.  
  431. EXTERN_API( OSErr )
  432. AEDeleteParam                    (AppleEvent *            theAppleEvent,
  433.                                  AEKeyword                 theAEKeyword)                        THREEWORDINLINE(0x303C, 0x0413, 0xA816);
  434.  
  435.  
  436.  
  437. /**************************************************************************
  438.  The following calls also apply to type AppleEvent. Message attributes are
  439.  far more restricted, and can only be accessed through the following 5
  440.  calls. The various list and record routines cannot be used to access the
  441.  attributes of an event. 
  442. **************************************************************************/
  443. EXTERN_API( OSErr )
  444. AEGetAttributePtr                (const AppleEvent *        theAppleEvent,
  445.                                  AEKeyword                 theAEKeyword,
  446.                                  DescType                 desiredType,
  447.                                  DescType *                typeCode,
  448.                                  void *                    dataPtr,
  449.                                  Size                     maximumSize,
  450.                                  Size *                    actualSize)                            THREEWORDINLINE(0x303C, 0x0E15, 0xA816);
  451.  
  452. EXTERN_API( OSErr )
  453. AEGetAttributeDesc                (const AppleEvent *        theAppleEvent,
  454.                                  AEKeyword                 theAEKeyword,
  455.                                  DescType                 desiredType,
  456.                                  AEDesc *                result)                                THREEWORDINLINE(0x303C, 0x0826, 0xA816);
  457.  
  458. EXTERN_API( OSErr )
  459. AESizeOfAttribute                (const AppleEvent *        theAppleEvent,
  460.                                  AEKeyword                 theAEKeyword,
  461.                                  DescType *                typeCode,
  462.                                  Size *                    dataSize)                            THREEWORDINLINE(0x303C, 0x0828, 0xA816);
  463.  
  464. EXTERN_API( OSErr )
  465. AEPutAttributePtr                (AppleEvent *            theAppleEvent,
  466.                                  AEKeyword                 theAEKeyword,
  467.                                  DescType                 typeCode,
  468.                                  const void *            dataPtr,
  469.                                  Size                     dataSize)                            THREEWORDINLINE(0x303C, 0x0A16, 0xA816);
  470.  
  471. EXTERN_API( OSErr )
  472. AEPutAttributeDesc                (AppleEvent *            theAppleEvent,
  473.                                  AEKeyword                 theAEKeyword,
  474.                                  const AEDesc *            theAEDesc)                            THREEWORDINLINE(0x303C, 0x0627, 0xA816);
  475.  
  476.  
  477.  
  478.  
  479. #if PRAGMA_STRUCT_ALIGN
  480.     #pragma options align=reset
  481. #elif PRAGMA_STRUCT_PACKPUSH
  482.     #pragma pack(pop)
  483. #elif PRAGMA_STRUCT_PACK
  484.     #pragma pack()
  485. #endif
  486.  
  487. #ifdef PRAGMA_IMPORT_OFF
  488. #pragma import off
  489. #elif PRAGMA_IMPORT
  490. #pragma import reset
  491. #endif
  492.  
  493. #ifdef __cplusplus
  494. }
  495. #endif
  496.  
  497. #endif /* __AEDATAMODEL__ */
  498.  
  499.